package com.huayal.common.constant;

import lombok.Data;

/**
 * 仓库模块常量
 */
public class WareConstant {

    public enum PurchaseStatusEnum{
        NEWLY_BUILT(0,"新建"),
        ASSIGNED(1,"已分配"),
        RECEIVED(2,"已领取"),
        COMOLETED(3,"已完成"),
        ABNORMAL(4,"有异常"),;

        private int code;
        private String message;
        PurchaseStatusEnum(int code, String message) {
            this.code=code;
            this.message=message;
        }
        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

    }

    public enum PurchaseItemStatusEnum{
        NEWLY_BUILT(0,"新建"),
        ASSIGNED(1,"已分配"),
        PURCHASING(2,"正在采购"),
        COMOLETED(3,"已完成"),
        PURCHASE_FAILURE(4,"采购失败"),;

        private int code;
        private String message;
        PurchaseItemStatusEnum(int code, String message) {
            this.code=code;
            this.message=message;
        }
        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

    }
}
